home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI540.ASC < prev    next >
Text File  |  1992-08-12  |  2KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  540
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/2
  12.  
  13.     TITLE  :  Converting a Field in a Table Using Format
  14.  
  15.  
  16.  
  17.  
  18.   The following script demonstrates the use of SCAN to change
  19.   Fieldname to upper case.  A complete description of SCAN can be
  20.   found in the PAL User's Guide.  Refer to the PAL User's Guide's
  21.   index under "Scan command" for the page number.
  22.  
  23.   This is handled through the use of FORMAT, which is explained in
  24.   detail the PAL User's Guide.  Refer to the PAL User's Guide's
  25.   index under "Format function" for the page number.
  26.  
  27.   Note:
  28.        TBLNAME is the name of the table.
  29.        Fieldname is the name of the field.
  30.  
  31.   The following script converts the field Fieldname, in the table
  32.   TBLNAME, to upper case, via the use of the FORMAT specification
  33.   cu.
  34.  
  35.   EDIT "TBLNAME"      ;Place the table in edit mode.
  36.   SCAN
  37.        [Fieldname] = format("cu",[Fieldname])
  38.   ENDSCAN             ;Scan and convert field values.
  39.   DO_IT!              ;Save all changes.
  40.  
  41.  
  42.   The following script converts the field Fieldname, in Table
  43.   TBLNAME, to lower case, via the use of the FORMAT specification
  44.   cl.
  45.  
  46.   EDIT "TBLNAME"      ;Place the table in edit mode.
  47.   SCAN
  48.        [Fieldname] = format("cl",[Fieldname])
  49.   ENDSCAN             ;Scan and convert field values.
  50.   DO_IT!              ;Save all changes.
  51.  
  52.   The following script converts the field Fieldname, in Table
  53.   TBLNAME, to initial capital letter only, via the use of the
  54.   FORMAT specification cc.
  55.  
  56.   EDIT "TBLNAME"      ;Place the table in edit mode.
  57.   SCAN
  58.        [Fieldname] = format("cc",lower([Fieldname]))
  59.   ENDSCAN             ;Scan and convert field values.
  60.   DO_IT!              ;Save all changes.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  540
  75.   VERSION  :  All
  76.        OS  :  DOS
  77.      DATE  :  August 12, 1992                          PAGE  :  2/2
  78.  
  79.     TITLE  :  Converting a Field in a Table Using Format
  80.  
  81.  
  82.  
  83.  
  84.   DISCLAIMER: You have the right to use this technical information
  85.   subject to the terms of the No-Nonsense License Statement that
  86.   you received with the Borland product to which this information
  87.   pertains.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.